<script>
import { House, FolderChecked, ChatDotRound, Opportunity,CaretBottom } from '@element-plus/icons-vue'
import  AsideNavCom  from "../components/AsideNavCom.vue";
import  CrumbsCom  from "../components/CrumbsCom.vue";
// import { ElNotification } from 'element-plus'

export default {
  data() {
    return {

    }
  },
  // 使用组件必须要注册
  components: {
    AsideNavCom,
    CrumbsCom,
    House,
    FolderChecked,
    ChatDotRound,
    Opportunity,
    CaretBottom,
  },
  methods: {

  },
  computed: {

  },

  mounted() {

  }
}

</script>
<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <h1>
          <el-icon>
            <House />
          </el-icon>
          黑板公考
        </h1>
        <div class="userInfo">
          <el-icon>
            <FolderChecked />
          </el-icon>
          <el-icon>
            <ChatDotRound />
          </el-icon>
          <el-icon>
            <Opportunity />
          </el-icon>
          <img src="" alt="">
          <span>用户名 
            <el-icon><CaretBottom /></el-icon>
          </span>
        </div>
      </el-header>
      <el-container>
        <!-- 侧边导航栏 -->
        <el-aside>
          <AsideNavCom>

        </AsideNavCom>
        </el-aside>

        <el-main>
          <CrumbsCom></CrumbsCom>
          <router-view>

          </router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style scoped lang="scss">
.el-container {
  color: white;
  .el-aside {
    width: 200px;
    //width: v-bind(asideWidth);
    background-color:rgb(12, 12, 11);
    transition: all .2s linear;

    .logo {
      height: 60px;
      padding: 10px 0;
      display: flex;
      align-items: center;

      .el-image {
        width: 40px;
        height: 40px;
        margin: 0 10px;
      }
    }
  }
  .el-main{
    height: 100%;
    overflow: hidden;
  }
  .el-header {
    background-color: rgb(12, 12, 11);
    display: flex;
    justify-content: space-between;
    align-items: center;
    .userInfo{
      width: 200px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
}
</style>
